// 文件操作API   

const {src, dest} = require('gulp')
const clearnCSS = require('gulp-clean-css')
const rename = require('gulp-rename')

exports.default = () =>{
   return src('src/*.css')
        .pipe(clearnCSS())
        .pipe(rename({extname: '.min.css'}))
        .pipe(dest('dist'))
}